package cn.edu.scau.cmi.shishuai.exercise6;

public class Bank {
	int saveMoney;
	int year;
	double interest;
	public double computerInterest() {
		interest = year * 0.035 * saveMoney;
		System.out.printf("%d元存在银行%d年的利息：%f元\n", saveMoney, year, interest);
		return interest;
	}
	
}
